//
//  YRJHotAttractionsDetailViewController.m
//  TravelAroundTheWorld
//
//  Created by dllo on 15/10/23.
//  Copyright (c) 2015年 yanrenjie. All rights reserved.
//

#import "YRJHotAttractionsDetailViewController.h"
#import "YRJTripHeader.h"
@interface YRJHotAttractionsDetailViewController()<UIWebViewDelegate>

@end


@implementation YRJHotAttractionsDetailViewController
{
    // 风火轮
    UIActivityIndicatorView *acView;
}

- (void)dealloc {
    [_string release];
    
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    [self.view addSubview:webView];
    webView.delegate = self;
    webView.scalesPageToFit = YES;
    [webView release];
    
    acView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, (32.0 / 375) * WIDTH, (32.0 / 375) * WIDTH)];
    acView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
    acView.center = self.view.center;
    [acView release];
    NSURL *url = [NSURL URLWithString:self.string];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
